package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScaleDTO;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScale;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Repository
public interface DurationRuleFeeScaleMapper extends BaseMapper<DurationRuleFeeScale> {

    /**根据停车场id查询时长规则收费标准*/
    List<DurationRuleFeeScaleDTO> getDurationRuleFeeScaleByParkId(String parkId);
    /**根据规则id查询收费标准*/
    List<DurationRuleFeeScaleDTO> getDurationRuleFeeScaleByRuleId(Long durationRuleId);

    /**根据时长规则Id删除信息*/
    void deleteByRuleId(Long ruleId);
}
